home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: undergrad.math.uwaterloo.ca!sckettle
- From: sckettle@undergrad.math.uwaterloo.ca (Steve Kettle)
- Subject: static initialization order
- Sender: news@undergrad.math.uwaterloo.ca (news spool owner)
- Message-ID: <Dppwqz.Kt3@undergrad.math.uwaterloo.ca>
- Date: Thu, 11 Apr 1996 21:52:11 GMT
- Nntp-Posting-Host: noether.math.uwaterloo.ca
- Organization: University of Waterloo
-
- suppose you have n static objects that depend on each other. if the dependancy
- graph is a forest ( a bunch of trees ) ( a tree is a graph with no cycles ) how
- does one guarantee the correct order of construction? The objects in question
- could be local to a number of different translation units.
-
- that is my first question, second is i've been told that static data is often
- located in memory addresses beyond the start of the heap. does this at all
- contradict the fact that static data is initialzed to 0's at compile time?
-
-
- --
-